<template>
	<view class="content">
		<!-- status -->
		<view class="status"></view>
		<!-- 头部 -->
		<view class="detail-nav">
			<text class="nav-icon cuIcon-back" @tap="goBack()"></text>
			<view class="detail-name">
				{{movieName}}
			</view>
		</view>
		<web-view :src="movieSource"></web-view>
		<view class="msg">
			影片资源加载中,如播放失败,请更换播放源,重新播放.
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				movieName: '',
				movieSource: ''
			}
		},
		onLoad(opt) {
			this.movieName = opt.title;
			this.movieSource = opt.href;
		},
		methods: {
			goBack(){
				history.back();
			},
		}
	}
</script>

<style>
	@import url("./index.css");
</style>
